﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<volva.Models.Series>" %>
<%@ Import Namespace="volva.Models" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
        <h1>Þetta eru allir þættir sem eru í sýningu í þessari þáttaröð.</h1>
        <%
            List<Video> videosInSeries = ViewData["videosInSeries"] as List<Video>;
        %>
            <table>
                <tr>
                    <th>Nafn</th>
                    <th>Lýsing</th>
                    <th>Áhorf</th>
                </tr>
                <%
            foreach (Video v in videosInSeries)
            {
                Response.Write("<tr>");
                Response.Write("<td>" + v.name + "</td><td>" + v.description + "</td><td>" + v.viewCount + "</td>");
                Response.Write("</tr>");
            }
        %>
            </table>

</asp:Content>
